/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const pageRouter = {
  path: '/page',
  component: Layout,
  redirect: '/page/list',
  name: 'Page',
  meta: {
    title: '微页面',
    icon: 'table',
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/page/list'),
      name: 'PageListManagement',
      meta: { title: '微页面', noCache: true },
    },
    {
      path: 'create',
      component: () => import('@/views/page/create'),
      hidden: true,
      name: 'PageCreate',
      breadcrumb: false,
      meta: { title: '添加微页面', noCache: true },
    },
    {
      path: 'update',
      component: () => import('@/views/page/update'),
      hidden: true,
      name: 'PageUpdate',
      breadcrumb: false,
      meta: { title: '编辑微页面', noCache: true },
    },
  ],
}
export default pageRouter
